package cn.lefull.exception;

import lombok.Data;

/**
 * @description:
 * @author: qijiang
 * @date: 2019/3/8 17:57
 */
@Data
public class BusinessException extends RuntimeException{

    public BusinessException(String code, Object data) {
        this.code = code;
        this.data = data;
    }

    private String code;

    private Object data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
